const koa = require("koa");
const app = new koa();

const router = require("koa-router")();

router.get("/subject/:id",async ctx=>{
    console.log(ctx.params);
})
router.get("/playlist",async ctx=>{
    console.log(ctx.query);
})

app.use(router.routes());

app.listen(8080)